import { createStore } from "vuex";
import mutations from './mutations.js'
import storage from "@/utils/storage.js";

const state = {
    isCollapse: document.body.clientWidth <= 768 ? true : false,
    userInfo: '' || storage.getItem('userInfo'),
    tagList: [{ name: '首页', path: '/welcome' }],
    theme: 'light'
}

const store = createStore({
    state,
    // getters,
    mutations
})

export default store
